package com.cn.dream_order_server.pojo;

import java.util.ArrayList;
import java.util.List;

public class OrderPeymodeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderPeymodeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPeymodeIdIsNull() {
            addCriterion("peyMode_id is null");
            return (Criteria) this;
        }

        public Criteria andPeymodeIdIsNotNull() {
            addCriterion("peyMode_id is not null");
            return (Criteria) this;
        }

        public Criteria andPeymodeIdEqualTo(String value) {
            addCriterion("peyMode_id =", value, "peymodeId");
            return (Criteria) this;
        }

        public Criteria andPeymodeIdNotEqualTo(String value) {
            addCriterion("peyMode_id <>", value, "peymodeId");
            return (Criteria) this;
        }

        public Criteria andPeymodeIdGreaterThan(String value) {
            addCriterion("peyMode_id >", value, "peymodeId");
            return (Criteria) this;
        }

        public Criteria andPeymodeIdGreaterThanOrEqualTo(String value) {
            addCriterion("peyMode_id >=", value, "peymodeId");
            return (Criteria) this;
        }

        public Criteria andPeymodeIdLessThan(String value) {
            addCriterion("peyMode_id <", value, "peymodeId");
            return (Criteria) this;
        }

        public Criteria andPeymodeIdLessThanOrEqualTo(String value) {
            addCriterion("peyMode_id <=", value, "peymodeId");
            return (Criteria) this;
        }

        public Criteria andPeymodeIdLike(String value) {
            addCriterion("peyMode_id like", value, "peymodeId");
            return (Criteria) this;
        }

        public Criteria andPeymodeIdNotLike(String value) {
            addCriterion("peyMode_id not like", value, "peymodeId");
            return (Criteria) this;
        }

        public Criteria andPeymodeIdIn(List<String> values) {
            addCriterion("peyMode_id in", values, "peymodeId");
            return (Criteria) this;
        }

        public Criteria andPeymodeIdNotIn(List<String> values) {
            addCriterion("peyMode_id not in", values, "peymodeId");
            return (Criteria) this;
        }

        public Criteria andPeymodeIdBetween(String value1, String value2) {
            addCriterion("peyMode_id between", value1, value2, "peymodeId");
            return (Criteria) this;
        }

        public Criteria andPeymodeIdNotBetween(String value1, String value2) {
            addCriterion("peyMode_id not between", value1, value2, "peymodeId");
            return (Criteria) this;
        }

        public Criteria andPeymodeNameIsNull() {
            addCriterion("peyMode_name is null");
            return (Criteria) this;
        }

        public Criteria andPeymodeNameIsNotNull() {
            addCriterion("peyMode_name is not null");
            return (Criteria) this;
        }

        public Criteria andPeymodeNameEqualTo(String value) {
            addCriterion("peyMode_name =", value, "peymodeName");
            return (Criteria) this;
        }

        public Criteria andPeymodeNameNotEqualTo(String value) {
            addCriterion("peyMode_name <>", value, "peymodeName");
            return (Criteria) this;
        }

        public Criteria andPeymodeNameGreaterThan(String value) {
            addCriterion("peyMode_name >", value, "peymodeName");
            return (Criteria) this;
        }

        public Criteria andPeymodeNameGreaterThanOrEqualTo(String value) {
            addCriterion("peyMode_name >=", value, "peymodeName");
            return (Criteria) this;
        }

        public Criteria andPeymodeNameLessThan(String value) {
            addCriterion("peyMode_name <", value, "peymodeName");
            return (Criteria) this;
        }

        public Criteria andPeymodeNameLessThanOrEqualTo(String value) {
            addCriterion("peyMode_name <=", value, "peymodeName");
            return (Criteria) this;
        }

        public Criteria andPeymodeNameLike(String value) {
            addCriterion("peyMode_name like", value, "peymodeName");
            return (Criteria) this;
        }

        public Criteria andPeymodeNameNotLike(String value) {
            addCriterion("peyMode_name not like", value, "peymodeName");
            return (Criteria) this;
        }

        public Criteria andPeymodeNameIn(List<String> values) {
            addCriterion("peyMode_name in", values, "peymodeName");
            return (Criteria) this;
        }

        public Criteria andPeymodeNameNotIn(List<String> values) {
            addCriterion("peyMode_name not in", values, "peymodeName");
            return (Criteria) this;
        }

        public Criteria andPeymodeNameBetween(String value1, String value2) {
            addCriterion("peyMode_name between", value1, value2, "peymodeName");
            return (Criteria) this;
        }

        public Criteria andPeymodeNameNotBetween(String value1, String value2) {
            addCriterion("peyMode_name not between", value1, value2, "peymodeName");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther1IsNull() {
            addCriterion("peyMode_other1 is null");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther1IsNotNull() {
            addCriterion("peyMode_other1 is not null");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther1EqualTo(String value) {
            addCriterion("peyMode_other1 =", value, "peymodeOther1");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther1NotEqualTo(String value) {
            addCriterion("peyMode_other1 <>", value, "peymodeOther1");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther1GreaterThan(String value) {
            addCriterion("peyMode_other1 >", value, "peymodeOther1");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther1GreaterThanOrEqualTo(String value) {
            addCriterion("peyMode_other1 >=", value, "peymodeOther1");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther1LessThan(String value) {
            addCriterion("peyMode_other1 <", value, "peymodeOther1");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther1LessThanOrEqualTo(String value) {
            addCriterion("peyMode_other1 <=", value, "peymodeOther1");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther1Like(String value) {
            addCriterion("peyMode_other1 like", value, "peymodeOther1");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther1NotLike(String value) {
            addCriterion("peyMode_other1 not like", value, "peymodeOther1");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther1In(List<String> values) {
            addCriterion("peyMode_other1 in", values, "peymodeOther1");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther1NotIn(List<String> values) {
            addCriterion("peyMode_other1 not in", values, "peymodeOther1");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther1Between(String value1, String value2) {
            addCriterion("peyMode_other1 between", value1, value2, "peymodeOther1");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther1NotBetween(String value1, String value2) {
            addCriterion("peyMode_other1 not between", value1, value2, "peymodeOther1");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther2IsNull() {
            addCriterion("peyMode_other2 is null");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther2IsNotNull() {
            addCriterion("peyMode_other2 is not null");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther2EqualTo(String value) {
            addCriterion("peyMode_other2 =", value, "peymodeOther2");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther2NotEqualTo(String value) {
            addCriterion("peyMode_other2 <>", value, "peymodeOther2");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther2GreaterThan(String value) {
            addCriterion("peyMode_other2 >", value, "peymodeOther2");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther2GreaterThanOrEqualTo(String value) {
            addCriterion("peyMode_other2 >=", value, "peymodeOther2");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther2LessThan(String value) {
            addCriterion("peyMode_other2 <", value, "peymodeOther2");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther2LessThanOrEqualTo(String value) {
            addCriterion("peyMode_other2 <=", value, "peymodeOther2");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther2Like(String value) {
            addCriterion("peyMode_other2 like", value, "peymodeOther2");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther2NotLike(String value) {
            addCriterion("peyMode_other2 not like", value, "peymodeOther2");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther2In(List<String> values) {
            addCriterion("peyMode_other2 in", values, "peymodeOther2");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther2NotIn(List<String> values) {
            addCriterion("peyMode_other2 not in", values, "peymodeOther2");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther2Between(String value1, String value2) {
            addCriterion("peyMode_other2 between", value1, value2, "peymodeOther2");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther2NotBetween(String value1, String value2) {
            addCriterion("peyMode_other2 not between", value1, value2, "peymodeOther2");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther3IsNull() {
            addCriterion("peyMode_other3 is null");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther3IsNotNull() {
            addCriterion("peyMode_other3 is not null");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther3EqualTo(String value) {
            addCriterion("peyMode_other3 =", value, "peymodeOther3");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther3NotEqualTo(String value) {
            addCriterion("peyMode_other3 <>", value, "peymodeOther3");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther3GreaterThan(String value) {
            addCriterion("peyMode_other3 >", value, "peymodeOther3");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther3GreaterThanOrEqualTo(String value) {
            addCriterion("peyMode_other3 >=", value, "peymodeOther3");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther3LessThan(String value) {
            addCriterion("peyMode_other3 <", value, "peymodeOther3");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther3LessThanOrEqualTo(String value) {
            addCriterion("peyMode_other3 <=", value, "peymodeOther3");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther3Like(String value) {
            addCriterion("peyMode_other3 like", value, "peymodeOther3");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther3NotLike(String value) {
            addCriterion("peyMode_other3 not like", value, "peymodeOther3");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther3In(List<String> values) {
            addCriterion("peyMode_other3 in", values, "peymodeOther3");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther3NotIn(List<String> values) {
            addCriterion("peyMode_other3 not in", values, "peymodeOther3");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther3Between(String value1, String value2) {
            addCriterion("peyMode_other3 between", value1, value2, "peymodeOther3");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther3NotBetween(String value1, String value2) {
            addCriterion("peyMode_other3 not between", value1, value2, "peymodeOther3");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther4IsNull() {
            addCriterion("peyMode_other4 is null");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther4IsNotNull() {
            addCriterion("peyMode_other4 is not null");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther4EqualTo(String value) {
            addCriterion("peyMode_other4 =", value, "peymodeOther4");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther4NotEqualTo(String value) {
            addCriterion("peyMode_other4 <>", value, "peymodeOther4");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther4GreaterThan(String value) {
            addCriterion("peyMode_other4 >", value, "peymodeOther4");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther4GreaterThanOrEqualTo(String value) {
            addCriterion("peyMode_other4 >=", value, "peymodeOther4");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther4LessThan(String value) {
            addCriterion("peyMode_other4 <", value, "peymodeOther4");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther4LessThanOrEqualTo(String value) {
            addCriterion("peyMode_other4 <=", value, "peymodeOther4");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther4Like(String value) {
            addCriterion("peyMode_other4 like", value, "peymodeOther4");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther4NotLike(String value) {
            addCriterion("peyMode_other4 not like", value, "peymodeOther4");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther4In(List<String> values) {
            addCriterion("peyMode_other4 in", values, "peymodeOther4");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther4NotIn(List<String> values) {
            addCriterion("peyMode_other4 not in", values, "peymodeOther4");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther4Between(String value1, String value2) {
            addCriterion("peyMode_other4 between", value1, value2, "peymodeOther4");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther4NotBetween(String value1, String value2) {
            addCriterion("peyMode_other4 not between", value1, value2, "peymodeOther4");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther5IsNull() {
            addCriterion("peyMode_other5 is null");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther5IsNotNull() {
            addCriterion("peyMode_other5 is not null");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther5EqualTo(String value) {
            addCriterion("peyMode_other5 =", value, "peymodeOther5");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther5NotEqualTo(String value) {
            addCriterion("peyMode_other5 <>", value, "peymodeOther5");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther5GreaterThan(String value) {
            addCriterion("peyMode_other5 >", value, "peymodeOther5");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther5GreaterThanOrEqualTo(String value) {
            addCriterion("peyMode_other5 >=", value, "peymodeOther5");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther5LessThan(String value) {
            addCriterion("peyMode_other5 <", value, "peymodeOther5");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther5LessThanOrEqualTo(String value) {
            addCriterion("peyMode_other5 <=", value, "peymodeOther5");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther5Like(String value) {
            addCriterion("peyMode_other5 like", value, "peymodeOther5");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther5NotLike(String value) {
            addCriterion("peyMode_other5 not like", value, "peymodeOther5");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther5In(List<String> values) {
            addCriterion("peyMode_other5 in", values, "peymodeOther5");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther5NotIn(List<String> values) {
            addCriterion("peyMode_other5 not in", values, "peymodeOther5");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther5Between(String value1, String value2) {
            addCriterion("peyMode_other5 between", value1, value2, "peymodeOther5");
            return (Criteria) this;
        }

        public Criteria andPeymodeOther5NotBetween(String value1, String value2) {
            addCriterion("peyMode_other5 not between", value1, value2, "peymodeOther5");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}